import DS from 'ember-data';

export default DS.Model.extend({
  name:DS.attr("string"),
  parentId:DS.attr("string"),
  parent:DS.belongsTo("product-category"),
  thumb:DS.attr("string"),
  description:DS.attr("string"),
  sortOrder:DS.attr("number"),
  adUri:DS.attr("string"),
  adImage:DS.attr("string"),
  enabled:DS.attr("boolean"),
  level:DS.attr("number"),
  children: DS.hasMany("product-category", { inverse: 'parent'}),
  products:DS.hasMany("product")
});
